package com.bank.basic.pojo;

import com.bank.model.entity.Transfer;
import lombok.Getter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.ArrayDeque;
import java.util.Queue;

/**
 * @author Cejay1314
 * @version 1.0
 * @create 2023/4/2 13:03
 */
@Component
@Getter
public class ScheduledObject {
    Queue<Transfer> twoHourTransfer;
    Queue<Transfer> oneDayTransfer;
    @Autowired
    void init(){
        twoHourTransfer = new ArrayDeque<>();
        oneDayTransfer = new ArrayDeque<>();
    }

}
